[zs_id].vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <script setup>
  2. import { useRouter } from 'vue-router'
  3. import request, { REQUEST } from '~/utils/request'
  4. import { user } from '~/store'
  5. const router = useRouter()
  6. const route = useRoute()
  7. function linkTo(name) {
  8. router.push({ name })
  9. }
  10. const rules = $ref({
  11. dtkmc: [{ required: true, message: '请输入答题卡名称', trigger: 'blur' }],
  12. zf: [{ required: true, message: '请输入总分', trigger: 'blur' }],
  13. lclx: [{ required: true, message: '请选择流程类型', trigger: 'change' }],
  14. fj_choose: [{ required: true, message: '请选择阅卷流程', trigger: 'change' }],
  15. })
  16. const ruleFormRef = ref(null)
  17. const createForm = $ref({
  18. xkmc: '',
  19. dtkmc: '',
  20. dtkbm: '',
  21. zf: '',
  22. jgfs: '',
  23. yxfs: '',
  24. dffs: '',
  25. lclx: '',
  26. fj_choose: '1',
  27. })
  28. const lc_type_list = [{
  29. value: '0',
  30. label: '常规',
  31. }, {
  32. value: '1',
  33. label: '自定义框选',
  34. }, {
  35. value: '2',
  36. label: '无定位点框选(第三方答题卡)',
  37. }]
  38. const yjlc = [{
  39. value: '1',
  40. label: '上传文件',
  41. }, {
  42. value: '2',
  43. label: '模板预扫描',
  44. }, {
  45. value: '3',
  46. label: '沿用答题卡',
  47. }]
  48. function handleAutoCompleteTask(val) {
  49. const { gid, pid, cid } = JSON.parse(sessionStorage.getItem('StepId'))
  50. // handleCompleteTask(gid, pid, cid)
  51. const _ykl_lc_ = JSON.parse(sessionStorage.getItem('ykl_lc'))
  52. _ykl_lc_.processList[gid][pid][cid] = val || 1
  53. return request({
  54. url: '/yzy/kmksyjlc/save',
  55. data: {
  56. ykl_id: _ykl_lc_.ykl_id,
  57. yk: {
  58. ykl_lc: JSON.stringify(_ykl_lc_),
  59. },
  60. },
  61. }).then((res) => {
  62. if (res.code === '1') {
  63. ElMessage({
  64. message: '操作成功',
  65. type: 'success',
  66. grouping: true,
  67. })
  68. sessionStorage.setItem('ykl_lc', JSON.stringify(_ykl_lc_))
  69. nextTick(() => {
  70. router.back()
  71. })
  72. }
  73. }).catch(() => {
  74. ElMessage({
  75. message: '操作失败',
  76. type: 'error',
  77. grouping: true,
  78. })
  79. })
  80. }
  81. function handleCancel() {
  82. router.back()
  83. }
  84. async function handleSubmit(formEl) {
  85. if (!formEl)
  86. return
  87. formEl.validate(async (valid, fields) => {
  88. if (valid) {
  89. if (fileList.length === 0) {
  90. ElMessage({
  91. type: 'warning',
  92. message: '请先上传附件!',
  93. })
  94. }
  95. else {
  96. request({
  97. url: '/yzy/ksjh/fjct_edit',
  98. data: {
  99. zs_id,
  100. ze_id,
  101. zs_name: createForm.dtkmc,
  102. zs_alias: createForm.dtkbm,
  103. zs_lctype: createForm.lclx,
  104. fj_choose: createForm.fj_choose,
  105. fj_content: fileList,
  106. ze_pass_score: createForm.jgfs,
  107. ze_max_score: createForm.yxfs,
  108. shijuan_score: createForm.zf,
  109. ze_min_score: createForm.dffs,
  110. },
  111. }).then((res) => {
  112. if (res.code === '1') {
  113. ElMessage.success('附件出题编辑成功!')
  114. // 需要跳转到新流程页面
  115. handleAutoCompleteTask()
  116. }
  117. })
  118. }
  119. }
  120. else {
  121. console.log('error submit!', fields)
  122. }
  123. })
  124. }
  125. let dialogVisible = $ref(false)
  126. let chooseCheck = $ref('')
  127. let ze_id = $ref('')
  128. let zs_id = $ref('')
  129. if (route.params.ze_id) {
  130. ze_id = route.params.ze_id
  131. zs_id = route.params.zs_id
  132. getDetail()
  133. }
  134. let fullscreenLoading = $ref(false)
  135. let fileList = $ref([])
  136. let scanLoading = $ref(false)
  137. function getDetail() {
  138. request({
  139. url: '/yzy/ksjh/fjct_detail',
  140. data: {
  141. ze_id,
  142. zs_id,
  143. },
  144. }).then((res) => {
  145. if (res.code === '1') {
  146. createForm.xkmc = res.data.one_info.ze_xueke_name
  147. createForm.dtkmc = res.data.one_info.zs_name
  148. createForm.dtkbm = res.data.one_info.zs_alias
  149. createForm.zf = res.data.one_info.shijuan_score
  150. createForm.jgfs = res.data.one_info.ze_pass_score
  151. createForm.yxfs = res.data.one_info.ze_max_score
  152. createForm.dffs = res.data.one_info.ze_min_score
  153. createForm.lclx = res.data.one_info.zs_lctype
  154. if (res.data.one_info.fj_choose === '0')
  155. createForm.fj_choose = '1'
  156. else
  157. createForm.fj_choose = res.data.one_info.fj_choose
  158. fileList = []
  159. if (res.data.one_info.fj_content !== '') {
  160. const i_arr = res.data.one_info.fj_content.split('**')
  161. for (const i in i_arr) {
  162. const f_obj = {
  163. name: i_arr[i].split('##')[0],
  164. url: i_arr[i].split('##')[1],
  165. }
  166. fileList.push(f_obj)
  167. }
  168. }
  169. }
  170. })
  171. }
  172. function uploadFile(file) {
  173. // console.log(file, 87)
  174. fullscreenLoading = true
  175. REQUEST.upload({
  176. url: '/upload/main/file',
  177. data: {
  178. filedata: file.raw,
  179. mod: 'upload',
  180. action: 'main',
  181. do: 'file',
  182. urltype: '1',
  183. },
  184. }).then((res) => {
  185. fullscreenLoading = false
  186. if (res.code === '1') {
  187. // console.log(res.data, 89)
  188. const file_info = {
  189. name: res.data.file_name,
  190. url: res.data.url,
  191. }
  192. fileList.push(file_info)
  193. }
  194. else {
  195. ElMessage({
  196. type: 'warning',
  197. message: '上传失败',
  198. })
  199. }
  200. })
  201. }
  202. let previewDialogVisible = $ref(false)
  203. let fileType = $ref('')
  204. let fileUrl = $ref('')
  205. function filePreview(item) {
  206. previewDialogVisible = true
  207. if (/\.(jpg|png|jpeg)/.test(item.url)) {
  208. fileType = 'img'
  209. fileUrl = item.url
  210. }
  211. else if (/\.mp4/.test(item.url)) {
  212. fileType = 'mp4'
  213. fileUrl = item.url
  214. }
  215. else if (/\.(docx|doc|pdf|ppt|pptx|xls|xlsx)/.test(item.url)) {
  216. fileType = 'file'
  217. fileUrl = `https://view.officeapps.live.com/op/view.aspx?src=${item.url}`
  218. }
  219. }
  220. function downloadFile(item) {
  221. window.open(item.url, '_blank')
  222. }
  223. function delFile(index) {
  224. fileList.splice(index, 1)
  225. }
  226. function launchClient() {
  227. scanLoading = true
  228. const scan_batch = parseInt(new Date().getTime() / 1000) + randomString(5)
  229. const clientLink = `bozeduyuejuan://${user.value.token},0,${window.GLOBAL_CONFIG.yzy},pre_scan,${scan_batch}`
  230. window.open(clientLink, '_blank')
  231. getScanStatus(scan_batch)
  232. }
  233. function randomString(e) {
  234. e = e || 32
  235. const t = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789'
  236. const a = t.length
  237. let n = ''
  238. for (let i = 0; i < e; i++) n += t.charAt(Math.floor(Math.random() * a))
  239. return n
  240. }
  241. let timer = null
  242. function interval(func, wait) {
  243. const interv = () => {
  244. func.call(null)
  245. timer = setTimeout(interv, wait)
  246. }
  247. timer = setTimeout(interv, wait)
  248. }
  249. function getScanStatus(scan_batch) {
  250. request({
  251. url: '/yzy/kmksyjlc/pre_scan_get',
  252. data: {
  253. tag: scan_batch,
  254. },
  255. }).then((res) => {
  256. if (res.code === '1') {
  257. if (res.data.files.length === 0) {
  258. interval(() => {
  259. if (timer) {
  260. clearTimeout(timer)
  261. timer = null
  262. }
  263. getScanStatus(scan_batch)
  264. }, 10000)
  265. }
  266. else {
  267. scanLoading = false
  268. if (timer) {
  269. clearTimeout(timer)
  270. timer = null
  271. }
  272. fileList = []
  273. for (let i = 0; i < res.data.files.length; i++) {
  274. const file_info = {
  275. name: `模板_${i + 1}`,
  276. url: `${window.GLOBAL_CONFIG.yzy}/${res.data.files[i]}`,
  277. }
  278. fileList.push(file_info)
  279. }
  280. }
  281. }
  282. })
  283. }
  284. const limit = $ref(8)
  285. let total = $ref(0)
  286. let cur_page = $ref(1)
  287. let exam_time = $ref([])
  288. const keyword = $ref('')
  289. let cardList = $ref([])
  290. function chooseCard() {
  291. getListData()
  292. chooseCheck = ''
  293. dialogVisible = true
  294. }
  295. function getListData() {
  296. const data = {
  297. page: cur_page,
  298. limit,
  299. keyword,
  300. }
  301. if (exam_time && exam_time.length > 0) {
  302. data.date_start = exam_time[0]
  303. data.date_end = exam_time[1]
  304. }
  305. else {
  306. data.date_start = ''
  307. data.date_end = ''
  308. }
  309. request({
  310. url: '/yzy/ksjh/before_paper',
  311. data,
  312. }).then((res) => {
  313. if (res.code === '1') {
  314. cardList = res.data.page_data
  315. total = Number(res.data.total_rows)
  316. cur_page = Number(res.data.page_now)
  317. for (const i in cardList) {
  318. for (const j in cardList[i].fj_content)
  319. cardList[i].not_allowed = /\.(docx|doc|pdf|ppt|pptx|xls|xlsx|mp4)/.test(cardList[i].fj_content[j].url)
  320. }
  321. }
  322. })
  323. }
  324. function handleDateChange(val) {
  325. if (val)
  326. exam_time = [val[0], val[1]]
  327. else
  328. exam_time = []
  329. cur_page = 1
  330. getListData()
  331. }
  332. function handleSelectionChange(val) {
  333. cur_page = val
  334. getListData()
  335. }
  336. function filterData() {
  337. cur_page = 1
  338. getListData()
  339. }
  340. function chooseCardSub() {
  341. for (const i in cardList) {
  342. if (cardList[i].zs_id === chooseCheck)
  343. fileList = cardList[i].fj_content
  344. }
  345. dialogVisible = false
  346. }
  347. let imgPreview = $ref([])
  348. let showPreview = $ref(false)
  349. function imgShow(item) {
  350. imgPreview = item.fj_content
  351. showPreview = true
  352. }
  353. function autoScore() {
  354. if (createForm.zf !== '' && !isNaN(parseFloat(createForm.zf)) && isFinite(createForm.zf)) {
  355. request({
  356. url: '/yzy/ksjh/fjct_auto_calc',
  357. data: {
  358. ze_id,
  359. score: createForm.zf,
  360. },
  361. }).then((res) => {
  362. if (res.code === '1') {
  363. createForm.yxfs = res.data.ze_max_score
  364. createForm.jgfs = res.data.ze_pass_score
  365. createForm.dffs = res.data.ze_min_score
  366. }
  367. })
  368. }
  369. }
  370. </script>
  371. <template>
  372. <NavHeader />
  373. <bread-crumb />
  374. <div class="w-1200px m-auto">
  375. <div class="relative -mt-40px flex justify-end">
  376. <button type="button" class="back-btn" @click="linkTo('process')">
  377. 返回
  378. </button>
  379. </div>
  380. <div class="mt-10px w-full min-h-860px bg-hex-FFF pt-25px pb-30px">
  381. <h3 class="text-18px text-center">
  382. 附件出题
  383. </h3>
  384. <div class="mt-60px pl-250px">
  385. <el-form ref="ruleFormRef" :rules="rules" :model="createForm" label-width="140px" size="large" status-icon>
  386. <el-form-item label="学科" style="width: 620px">
  387. <h3 class="text-14px">
  388. {{ createForm.xkmc }}
  389. </h3>
  390. </el-form-item>
  391. <el-form-item label="答题卡名称" prop="dtkmc" style="width: 620px">
  392. <el-input v-model="createForm.dtkmc" placeholder="请输入答题卡名称" />
  393. </el-form-item>
  394. <el-form-item label="答题卡别名" style="width: 620px">
  395. <el-input v-model="createForm.dtkbm" placeholder="请输入答题卡别名" />
  396. </el-form-item>
  397. <el-form-item label="总分数" prop="zf" style="width: 620px">
  398. <el-input v-model="createForm.zf" placeholder="请输入总分" @input="autoScore" />
  399. </el-form-item>
  400. <el-form-item label="优秀分数" style="width: 620px">
  401. <el-input v-model="createForm.yxfs" placeholder="请输入优秀分数" readonly disabled />
  402. </el-form-item>
  403. <el-form-item label="及格分数" style="width: 620px">
  404. <el-input v-model="createForm.jgfs" placeholder="请输入及格分数" readonly disabled />
  405. </el-form-item>
  406. <el-form-item label="低分分数" style="width: 620px">
  407. <el-input v-model="createForm.dffs" placeholder="请输入低分分数" readonly disabled />
  408. </el-form-item>
  409. <el-form-item label="流程类型" prop="lclx" style="width: 620px">
  410. <el-radio-group v-model="createForm.lclx">
  411. <el-radio v-for="item in lc_type_list" :label="item.value">
  412. {{ item.label }}
  413. </el-radio>
  414. </el-radio-group>
  415. </el-form-item>
  416. <el-form-item label="阅卷流程" prop="fj_choose" style="width: 620px">
  417. <el-radio-group v-model="createForm.fj_choose">
  418. <el-radio v-for="item in yjlc" :label="item.value" @change="fileList = []">
  419. {{ item.label }}
  420. </el-radio>
  421. </el-radio-group>
  422. </el-form-item>
  423. <el-form-item>
  424. <el-upload
  425. v-if="createForm.fj_choose === '1'"
  426. v-loading.fullscreen.lock="fullscreenLoading"
  427. action=""
  428. :auto-upload="false"
  429. :show-file-list="false"
  430. :on-change="uploadFile"
  431. accept=".jpg,.png,.jpeg"
  432. class="upload-demo"
  433. >
  434. <el-button type="primary" color="#003eee">
  435. <el-icon :size="24">
  436. <UploadFilled />
  437. </el-icon>
  438. <span>上传文件</span>
  439. </el-button>
  440. <template #tip>
  441. <div class="el-upload__tip">
  442. 上传文件格式支持 jpg,png,jpeg
  443. </div>
  444. </template>
  445. </el-upload>
  446. <div v-else-if="createForm.fj_choose === '2'">
  447. <el-button type="primary" color="#003eee" @click="launchClient">
  448. <el-icon :size="24">
  449. <Promotion />
  450. </el-icon>
  451. <span>启动客户端</span>
  452. </el-button>
  453. </div>
  454. <div v-else>
  455. <el-button type="primary" color="#003eee" @click="chooseCard">
  456. <el-icon :size="24">
  457. <Plus />
  458. </el-icon>
  459. <span>请选择答题卡</span>
  460. </el-button>
  461. </div>
  462. </el-form-item>
  463. <el-form-item v-if="fileList.length > 0" label="文件列表">
  464. <div class="flex">
  465. <div class="w-370px">
  466. 名称
  467. </div>
  468. <div class="w-200px">
  469. 操作
  470. </div>
  471. </div>
  472. <div v-for="(item, index) in fileList" class="flex">
  473. <div class="w-370px truncate">
  474. {{ item.name }}
  475. </div>
  476. <div class="w-200px">
  477. <el-link :underline="false" @click="filePreview(item)">
  478. 预览
  479. </el-link>
  480. <el-link class="ml-10px" :underline="false" @click="downloadFile(item)">
  481. 下载
  482. </el-link>
  483. <el-link class="ml-10px" :underline="false" @click="delFile(index)">
  484. 删除
  485. </el-link>
  486. </div>
  487. </div>
  488. </el-form-item>
  489. <el-form-item>
  490. <div class="mt-50px pl-50px">
  491. <el-button class="mr-20px" @click="linkTo('process')">
  492. <span class="px-40px">取消</span>
  493. </el-button>
  494. <el-button type="primary" color="#003eee" @click="handleSubmit(ruleFormRef)">
  495. <span
  496. class="px-40px"
  497. >确定</span>
  498. </el-button>
  499. </div>
  500. </el-form-item>
  501. </el-form>
  502. </div>
  503. </div>
  504. </div>
  505. <el-dialog
  506. v-model="previewDialogVisible" title="文件预览"
  507. width="850px"
  508. custom-class="dialogTrick"
  509. append-to-body
  510. >
  511. <div class="w-full h-700px overflow-auto">
  512. <img v-if="fileType === 'img'" class="w-full" :src="fileUrl" alt="Preview Image">
  513. <video v-if="fileType === 'mp4'" class="w-full h-full" controls :src="fileUrl" />
  514. <iframe v-if="fileType === 'file'" class="w-full h-full" :src="fileUrl" frameborder="0" />
  515. </div>
  516. </el-dialog>
  517. <el-dialog
  518. v-model="dialogVisible"
  519. title="答题卡选择"
  520. width="980px"
  521. custom-class="dialogTrick"
  522. append-to-body
  523. >
  524. <el-form :inline="true" class="flex justify-between" size="large">
  525. <el-form-item label="考试时间筛选">
  526. <el-date-picker
  527. v-model="exam_time"
  528. value-format="YYYY-MM-DD"
  529. type="daterange"
  530. range-separator="至"
  531. start-placeholder="开始时间"
  532. end-placeholder="结束时间"
  533. size="large"
  534. @change="handleDateChange"
  535. />
  536. </el-form-item>
  537. <div>
  538. <el-form-item style="margin-right: 10px">
  539. <el-input
  540. v-model="keyword" style="width: 200px;" placeholder="请输入关键字" clearable @keyup.enter="filterData"
  541. @clear="filterData"
  542. />
  543. </el-form-item>
  544. <el-form-item>
  545. <el-button color="#003eee" type="primary" @click="filterData">
  546. 搜索
  547. </el-button>
  548. </el-form-item>
  549. </div>
  550. </el-form>
  551. <div v-if="cardList.length > 0">
  552. <ul class="card-list py-15px pl-20px">
  553. <li v-for="item in cardList" class="relative py-15px" :class="chooseCheck === item.zs_id ? 'selected' : ''">
  554. <div class="choose">
  555. <p class="set-check">
  556. <input :id="item.zs_id" v-model="chooseCheck" type="radio" :value="item.zs_id">
  557. <label :for="item.zs_id" />
  558. </p>
  559. </div>
  560. <div class="w-162px h-108px m-auto overflow-hidden">
  561. <img
  562. class="w-full"
  563. :src="item.fj_content[0].url"
  564. alt=""
  565. >
  566. </div>
  567. <h3 class="mt-10px mb-10px px-20px text-13px leading-20px truncate text-center">
  568. {{ item.zs_name }}
  569. </h3>
  570. <button type="button" class="op-btn block m-auto" :disabled="item.not_allowed" @click="imgShow(item)">
  571. 查看
  572. </button>
  573. </li>
  574. </ul>
  575. <div class="mt-20px page-new flex justify-end">
  576. <el-pagination v-model:current-page="cur_page" v-model:page-size="limit" layout="total,prev, pager, next" :total="total" :background="true" @current-change="handleSelectionChange" />
  577. </div>
  578. </div>
  579. <div v-else class="no-data">
  580. <div>
  581. <h3 class="no-data-img" />
  582. <h4 class="mt-25px text-18px text-hex-0048e5 text-center">
  583. 暂无数据
  584. </h4>
  585. </div>
  586. </div>
  587. <template #footer>
  588. <span class="dialog-footer">
  589. <el-button class="mr-15px" size="large" @click="dialogVisible = false">
  590. <span class="px-10px">取消</span>
  591. </el-button>
  592. <el-button size="large" color="#003eee" type="primary" :disabled="chooseCheck === ''" @click="chooseCardSub">
  593. <span class="px-10px">确定</span>
  594. </el-button>
  595. </span>
  596. </template>
  597. </el-dialog>
  598. <div v-if="scanLoading" class="loading-mask">
  599. <div class="text-center">
  600. <div class="loading-icon" />
  601. <h3 class="text-16px text-center text-hex-959595">
  602. 客户端处理中,耐心等待……
  603. </h3>
  604. </div>
  605. </div>
  606. <div v-if="showPreview" class="preview-box">
  607. <el-icon class="preview-close cursor-pointer" @click="showPreview = false">
  608. <CloseBold />
  609. </el-icon>
  610. <el-carousel class="h-full overflow-y-auto" :autoplay="false" indicator-position="none">
  611. <el-carousel-item v-for="item in imgPreview" :key="item">
  612. <img class="m-auto block" :src="item.url" alt="">
  613. </el-carousel-item>
  614. </el-carousel>
  615. </div>
  616. <commonFooter />
  617. </template>
  618. <route lang="json">
  619. {
  620. "meta":{
  621. "title":"附件出题",
  622. "breadcrumb": true
  623. }
  624. }
  625. </route>
  626. <style lang="scss">
  627. .dialogTrick .el-dialog__footer {
  628. text-align: center;
  629. }
  630. </style>
  631. <style lang="scss" scoped>
  632. ::v-deep .el-radio__input.is-checked .el-radio__inner {
  633. border-color: #003eee;
  634. background: #003eee;
  635. }
  636. ::v-deep .el-radio__input.is-checked + .el-radio__label {
  637. color: #003eee;
  638. }
  639. ::v-deep .el-carousel__container{
  640. height: 100%;
  641. }
  642. .card-list {
  643. display: flex;
  644. flex-wrap: wrap;
  645. max-height: 515px;
  646. overflow-y: auto;
  647. li {
  648. width: 203px;
  649. background: #ffffff;
  650. border: 2px solid #cacaca;
  651. border-radius: 10px;
  652. margin-right: 30px;
  653. margin-bottom: 30px;
  654. &.selected {
  655. border-color: #003eee;
  656. }
  657. &:nth-child(4n) {
  658. margin-right: 0;
  659. }
  660. &:hover {
  661. .card-pop {
  662. display: flex;
  663. }
  664. }
  665. .card-title {
  666. width: 100%;
  667. font-size: 13px;
  668. line-height: 15px;
  669. }
  670. }
  671. .card-pop {
  672. position: absolute;
  673. left: 0;
  674. top: 0;
  675. width: 100%;
  676. height: 100%;
  677. border-radius: 10px;
  678. z-index: 30;
  679. background: rgba(0, 0, 0, .45);
  680. display: none;
  681. align-items: center;
  682. justify-content: center;
  683. }
  684. }
  685. .op-btn {
  686. width: 60px;
  687. height: 30px;
  688. background: #fff;
  689. border: 1px solid #003eee;
  690. border-radius: 2px;
  691. font-size: 14px;
  692. color: #003eee;
  693. text-align: center;
  694. &:disabled{
  695. background: #ccc;
  696. border-color: #ccc;
  697. color: #fff;
  698. pointer-events: none;
  699. }
  700. }
  701. .choose {
  702. position: absolute;
  703. left: -12px;
  704. top: -12px;
  705. z-index: 50;
  706. }
  707. .set-check {
  708. position: relative;
  709. z-index: 40;
  710. width: 25px;
  711. height: 25px;
  712. label {
  713. position: absolute;
  714. left: 0;
  715. width: 25px;
  716. height: 25px;
  717. cursor: pointer;
  718. background: #fff;
  719. border-radius: 4px;
  720. box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
  721. }
  722. input[type=radio] {
  723. width: 25px;
  724. height: 25px;
  725. opacity: 0;
  726. &:checked + label {
  727. background: #003eee;
  728. }
  729. &:checked + label:after {
  730. content: '';
  731. width: 16px;
  732. height: 10px;
  733. position: absolute;
  734. top: 5px;
  735. left: 4px;
  736. border: 3px solid #fff;
  737. border-top: none;
  738. border-right: none;
  739. -moz-transform: rotate(-45deg);
  740. -ms-transform: rotate(-45deg);
  741. -webkit-transform: rotate(-45deg);
  742. transform: rotate(-45deg);
  743. }
  744. }
  745. }
  746. .loading-mask {
  747. position: fixed;
  748. left: 0;
  749. top: 0;
  750. width: 100%;
  751. height: 100%;
  752. z-index: 1500;
  753. background: rgba(255, 255, 255, .6);
  754. display: flex;
  755. justify-content: center;
  756. align-items: center;
  757. }
  758. .loading-mask .loading-icon {
  759. margin: 0 auto 15px;
  760. width: 72px;
  761. height: 72px;
  762. background: url("/images/loading-new.gif") center no-repeat;
  763. }
  764. .no-data {
  765. width: 100%;
  766. height: 300px;
  767. display: flex;
  768. justify-content: center;
  769. align-items: center;
  770. .no-data-img {
  771. width: 233px;
  772. height: 199px;
  773. background: url("/images/no-data.png") center no-repeat;
  774. }
  775. }
  776. .preview-box{
  777. position: fixed;
  778. left: 0;
  779. top: 0;
  780. width: 100%;
  781. height: 100%;
  782. z-index: 2100;
  783. background: rgba(0,0,0,.5);
  784. .preview-close{
  785. position: absolute;
  786. right: 15px;
  787. top: 15px;
  788. font-size: 40px;
  789. color: #fff;
  790. z-index:2200 ;
  791. }
  792. .el-carousel__item{
  793. display: flex;
  794. align-items: center;
  795. justify-content: center;
  796. overflow-y: auto;
  797. }
  798. img{
  799. max-width: 80% !important;
  800. }
  801. }
  802. </style>